#include "../common/ListNode.h"

/* 删除链表的结点 n0 之后的首个结点 */
void remove(ListNode* n0) {
    if (n0->next == nullptr) return;
    ListNode* P = n0->next;
    ListNode* n1 = P->next;
    n0->next = n1;
    delete P;
}
